package com.cooperate.fly.service.system.Impl;

import com.cooperate.fly.bo.Question;
import com.cooperate.fly.bo.QuestionWithBLOBs;
import com.cooperate.fly.mapper.QuestionMapper;
import com.cooperate.fly.service.system.QuestionService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * Created by Administrator on 2017/2/21.
 */
@Service
public class QuestionServiceImpl implements QuestionService{

    @Resource
    private QuestionMapper questionMapper;


    @Override
    public List<QuestionWithBLOBs> findAll() {
        return this.questionMapper.selectAll();
    }

    @Override
    public Page<QuestionWithBLOBs> findPage(Pageable pageRequest) {
        return this.questionMapper.selectPage(pageRequest);
    }

}
